package com.nlscan.qdkit.common.core.util

import com.nlscan.qdkit.common.core.util.DeviceUtils
import com.nlscan.qdkit.common.core.util.ScreenUtils

object DeviceExUtils {

    /**
     * 是否是平板（非手表）
     */
    fun isTable(): Boolean {
        return DeviceUtils.isTablet()
                && ScreenUtils.getScreenHeight() > 480
    }

    fun isWatch(): Boolean {
        return DeviceUtils.isTablet()
                && ScreenUtils.getScreenHeight() <= 480
    }

    fun isTableOrWatch(): Boolean {
        return DeviceUtils.isTablet()
    }


}